package HTTPServer.Bank;

import java.io.*;


public class ConcreteAccount implements Account, Serializable{
    private String name;
    private double balance = 0;
    
    public ConcreteAccount(String name) {
        this.name = name;
    }
    
    public String getName() {
        return this.name;
    }
    
    public double getBalance() {
        return this.balance;
    }
    
    public void deposit(double amount) {
        this.balance += amount;
    }
    
    public void withdraw(double amount) {
        this.balance -= amount;
    }
}
